package com.fingard.csp.controller.simulate;

import com.fingard.csp.domain.simulate.SimulateRule;
import com.fingard.csp.service.simulate.SimulateRuleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/simulate/rule")
@Api(value="模拟规则相关API",tags={"模拟规则操作接口"})
public class SimulateRuleController {
    @Autowired
    public SimulateRuleService simulateRuleService;

    @GetMapping("/findAll")
    @ApiOperation(value = "查找所有的模拟规则",notes = "查询t_simulate_rule表中的所有数据")
    public List<SimulateRule> findAll() {
        return simulateRuleService.findAll();
    }
}